import request from "@/api/index"

export default{
  /**
   * @description: 添加 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   add(params){
    const url = "/task/exposedNetWork/add"
    return request.post(url,{
      homeBaseId:sessionStorage.getItem('homeBaseId'),
      homeBaseType:sessionStorage.getItem('homeBaseType'),
      ...params
    })
  },
  /**
   * @description: 编辑 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
   edit(params){
    const url = "/task/exposedNetWork/edit"
    return request.post(url,{
      homeBaseId:sessionStorage.getItem('homeBaseId'),
      homeBaseType:sessionStorage.getItem('homeBaseType'),
      ...params
    })
  },
  /**
   * @description: 单个删除 *代表必填
   * @param {String/Number} id *
   * @return {Object}
   */
   delById(params){
    const url = "/task/exposedNetWork/delById"
    return request.get(url,{
      homeBaseId:sessionStorage.getItem('homeBaseId'),
      homeBaseType:sessionStorage.getItem('homeBaseType'),
      ...params
    })
  },
  /**
   * @description: 批量删除 *代表必填
   * @param {String/Number} idList *
   * @return {Object}
   */
  delListById(params){
    const url = "/task/exposedNetWork/delListById"
    return request.get(url,{
      homeBaseId:sessionStorage.getItem('homeBaseId'),
      homeBaseType:sessionStorage.getItem('homeBaseType'),
      ...params
    })
  },
  /**
   * @description: 编号查询 *代表必填
   * @param {Object} params *
   * @return {Object}
   */
  queryById(params){
    const url = "/task/exposedNetWork/queryById"
    return request.get(url,params)
   },
  /**
   * @description: 条件查询 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
   queryByCondition(params){
    const url = "/task/exposedNetWork/queryByCondition"
    return request.post(url,{
      homeBaseId:sessionStorage.getItem('homeBaseId'),
      homeBaseType:sessionStorage.getItem('homeBaseType'),
      ...params
    })
   },
  /**
   * @description: 分页查询 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
   queryPageByCondition(params){
    const url = "/task/exposedNetWork/queryPageByCondition"
    return request.post(url,{
      homeBaseId:sessionStorage.getItem('homeBaseId'),
      homeBaseType:sessionStorage.getItem('homeBaseType'),
      ...params
    })
  },
  /**
   * @description: 审核 *代表必填
   * @param {Object} params *
   * @param {String/Number} page *
   * @param {String/Number} size *
   * @return {Object}
   */
  audit(params){
    const url = "/task/exposedNetWork/audit"
    return request.post(url,{
      ...params
    })
   },
  
}